<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.util.ArrayList" %>

<%@page import="com.sun.xml.internal.txw2.Document"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>DAILY ACCOUNT REPORT</title>
</head>
<%
ArrayList<Integer> paientIdUtensilAllocated= (ArrayList<Integer>)session.getAttribute("paientIdUtensilAllocated");
ArrayList<Integer> amountIdUtensilAllocated= (ArrayList<Integer>)session.getAttribute("amountIdUtensilAllocated");
ArrayList<Integer> paientIdUtensilDeAllocated= (ArrayList<Integer>)session.getAttribute("paientIdUtensilDeAllocated");
ArrayList<Integer> amountIdUtensilDeAllocated= (ArrayList<Integer>)session.getAttribute("amountIdUtensilDeAllocated");
ArrayList<Integer> transactionIdCheckOut= (ArrayList<Integer>)session.getAttribute("transactionIdCheckOut");
ArrayList<Integer> amountCheckOut= (ArrayList<Integer>)session.getAttribute("amountCheckOut");
%>
<body>
	<table border="1" align="center">
		<tr>
			<td colspan="6" align="center">
				DAILY ACCOUNT REPORTING
			</td>
			<td colspan="1" align="right">
				DATE : 
			</td>
			<td colspan="2" align="center">
			<%=session.getAttribute("date").toString()+"."%>
			</td>
		</tr>
		<tr>
			<td>
				S.No.
			</td>
			<td colspan="3">
				Collection
			</td>
			<td>
				Rs.
			</td>
			<td>
				S.No.
			</td>
			<td colspan="2">
				Expenses
			</td>
			<td>
				Rs.
			</td>
		</tr>
		<tr>
			<td align="center">
				1
			</td>
			<td colspan="2">
				Rasoi Morning
			</td>
			<td colspan="1">
				<%=session.getAttribute("col1a").toString()+"."%> 
			</td>
			<td colspan="1" rowspan="2">
				<%=session.getAttribute("col12b").toString()+"."%>
			</td>
			<td colspan="1" align="center">
				1
			</td>
			<td colspan="2">
				<%=session.getAttribute("exp1a").toString()+"."%> 
			</td>
			<td colspan="1">
				<%=session.getAttribute("exp1b").toString()+"."%> 
			</td>
		</tr>
		<tr>
			<td align="center" >
				2
			</td>
			<td colspan="2">
				Rasoi Evening
			</td>
			<td colspan="1">
				<%=session.getAttribute("col2a").toString()+"."%> 
			</td>
			<td colspan="1" align="center">
				2
			</td>
			<td colspan="2">
				<%=session.getAttribute("exp2a").toString()+"."%> 
			</td>
			<td colspan="1">
				<%=session.getAttribute("exp2b").toString()+"."%> 
			</td>
		</tr>
		<tr>
			<td align="center">
				3
			</td>
			<td colspan="1">
				W recpt
			</td>
			<td colspan="1">
			<%
				if(Integer.parseInt(session.getAttribute("col34c").toString()) == 0)
				{
			
			%>
				xxxx
			<%	
				}	
				else
				{
			%>
				<%=session.getAttribute("col3a").toString()+"."%> 
			<%
				}
			%>
			</td>
			<td colspan="1">
				<%
				if(Integer.parseInt(session.getAttribute("col34c").toString()) == 0)
				{
			
			%>
				xxxx
			<%	
				}	
				else
				{
			%>
				<%=session.getAttribute("col3b").toString()+"."%> 
			<%
				}
			%> 
			</td>
			<td colspan="1" rowspan="2">
				<%=session.getAttribute("col34c").toString()+"."%> 
			</td>
			<td colspan="1" align="center">
				3
			</td>
			<td colspan="2">
				<%=session.getAttribute("exp3a").toString()+"."%> 
			</td>
			<td colspan="1">
				<%=session.getAttribute("exp3b").toString()+"."%> 
			</td>
		</tr>
		<tr>
			<td align="center">
				4
			</td>
			<td colspan="1">
				W recpt
			</td>
			<td colspan="1">
				xxxxx
			</td>
			<td colspan="1">
				xxxx
			</td>
			<td colspan="1" align="center">
				4
			</td>
			<td colspan="2">
				<%=session.getAttribute("exp4a").toString()+"."%> 
			</td>
			<td colspan="1">
				<%=session.getAttribute("exp4b").toString()+"."%> 
			</td>
		</tr>
		<tr>
			<td align="center">
				5
			</td>
			<td colspan="2">
				B Morning
			</td>
			<td colspan="1">
				<%=session.getAttribute("col5a").toString()+"."%> 
			</td>
			<td colspan="1" rowspan="4">
				<%=session.getAttribute("col5678b").toString()+"."%> 
			</td>
			<td colspan="1" align="center">
				5
			</td>
			<td colspan="2">
				<%=session.getAttribute("exp5a").toString()+"."%> 
			</td>
			<td colspan="1">
				<%=session.getAttribute("exp5b").toString()+"."%> 
			</td>
		</tr>
		<tr>
			<td align="center" >
				6
			</td>
			<td colspan="2">
				B Afternoon
			</td>
			<td colspan="1">
				<%=session.getAttribute("col6a").toString()+"."%> 
			</td>
			<td colspan="1" align="center">
				6
			</td>
			<td colspan="2">
				<%=session.getAttribute("exp6a").toString()+"."%> 
			</td>
			<td colspan="1">
				<%=session.getAttribute("exp6b").toString()+"."%> 
			</td>
		</tr>
		<tr>
			<td align="center" >
				7
			</td>
			<td colspan="2">
				Bus Mini
			</td>
			<td colspan="1">
				<%=session.getAttribute("col7a").toString()+"."%> 
			</td>
			<td colspan="1" align="center">
				7
			</td>
			<td colspan="2">
				<%=session.getAttribute("exp7a").toString()+"."%> 
			</td>
			<td colspan="1">
				<%=session.getAttribute("exp7b").toString()+"."%> 
			</td>
		</tr>
		<tr>
			<td align="center" >
				8
			</td>
			<td colspan="2">
				B Evening
			</td>
			<td colspan="1">
				<%=session.getAttribute("col8a").toString()+"."%> 
			</td>
			<td colspan="1" align="center">
				8
			</td>
			<td colspan="2">
				<%=session.getAttribute("exp8a").toString()+"."%> 
			</td>
			<td colspan="1">
				<%=session.getAttribute("exp8b").toString()+"."%> 
			</td>
		</tr>
		<tr>
			<td align="center">
				9
			</td>
			<td colspan="1">
				Ambulance
			</td>
			<td colspan="1">
				<%=session.getAttribute("col9a").toString()+"."%> 
			</td>
			<td colspan="1">
				<%=session.getAttribute("col9b").toString()+"."%> 
			</td>
			<td colspan="1" rowspan="2">
				<%=session.getAttribute("col910c").toString()+"."%> 
			</td>
			<td colspan="1" align="center">
				9
			</td>
			<td colspan="2">
				<%=session.getAttribute("exp9a").toString()+"."%> 
			</td>
			<td colspan="1">
				<%=session.getAttribute("exp9b").toString()+"."%> 
			</td>
		</tr>
		<tr>
			<td align="center">
				10
			</td>
			<td colspan="1">
				Ambulance
			</td>
			<td colspan="1">
				<%=session.getAttribute("col10a").toString()+"."%> 
			</td>
			<td colspan="1">
				<%=session.getAttribute("col10b").toString()+"."%> 
			</td>
			<td colspan="1" align="center">
				10
			</td>
			<td colspan="2">
				<%=session.getAttribute("exp10a").toString()+"."%> 
			</td>
			<td colspan="1">
				<%=session.getAttribute("exp10b").toString()+"."%> 
			</td>
		</tr>
		<tr>
			<td align="center">
				11
			</td>
			<td colspan="3">
				<%=session.getAttribute("col11Others").toString()+"."%> 
			</td>
			<td colspan="1" rowspan="1">
				<%=session.getAttribute("col11a").toString()+"."%> 
			</td>
			<td colspan="1" align="center">
				11
			</td>
			<td colspan="2">
				<%=session.getAttribute("exp11a").toString()+"."%> 
			</td>
			<td colspan="1">
				<%=session.getAttribute("exp11b").toString()+"."%> 
			</td>
		</tr>
		<tr>
			<td align="center">
				12
			</td>
			<td colspan="3">
				<%=session.getAttribute("col12Others").toString()+"."%> 
			</td>
			<td colspan="1" rowspan="1">
				<%=session.getAttribute("col12a").toString()+"."%> 
			</td>
			<td colspan="1" align="center">
				12
			</td>
			<td colspan="2">
				<%=session.getAttribute("exp12a").toString()+"."%> 
			</td>
			<td colspan="1">
				<%=session.getAttribute("exp12b").toString()+"."%> 
			</td>
		</tr>
		<tr>
			
			<td colspan="4" align="center">
				Collection Total (A)
			</td>
			<td colspan="1" rowspan="1">
				<%=session.getAttribute("coltotal").toString()+"."%> 
			</td>
			<td colspan="3" align="center">
				Expenses Total (B)
			</td>
			<td colspan="1">
				<%=session.getAttribute("exptotal").toString()+"."%> 
			</td>
		</tr>
		<tr>
			<td colspan="9" align="center">
				ROOM AND UTENSIL DEPOSIT
			</td>
		</tr>
		<tr>
			<td align="center" colspan="4">
				RECEIVED DEPOSIT FOR ROOMS
			</td>
			<td align="center" colspan="5">
				REFUNDED DEPOSIT FOR ROOMS
			</td>
		</tr>
		<tr>
			<td align="center" colspan="2">
				Register S. No.
			</td>
			<td align="center" colspan="2">
				Total Amount (X)
			</td>
			<td align="center" colspan="1">
				S.No.
			</td >
			<td align="center" colspan="2">
				Register S.No.
			</td>
			<td align="center" colspan="2">
				Amount 
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%=session.getAttribute("depositTransactionIdRange").toString()+"."%>
			</td>
			<td align="center" colspan="2">
				<%=session.getAttribute("totalDeposit").toString()+"."%>
			</td>
			<td align="center" colspan="1">
				1
			</td >
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>0)
					{
				%>
						<%=transactionIdCheckOut.get(0) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>0)
					{
				%>
						<%=amountCheckOut.get(0) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="4">
				RECEIVED DEPOSIT FOR UTENSIL
			</td>
			<td align="center" colspan="1">
				2
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>1)
					{
				%>
						<%=transactionIdCheckOut.get(1) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>1)
					{
				%>
						<%=amountCheckOut.get(1) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				TransactionId Id
			</td>
			<td align="center" colspan="2">
				Amount
			</td>
			<td align="center" colspan="1">
				3
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>2)
					{
				%>
						<%=transactionIdCheckOut.get(2) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>2)
					{
				%>
						<%=amountCheckOut.get(2) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilAllocated.size()>0)
					{
				%>
						<%=paientIdUtensilAllocated.get(0) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilAllocated.size()>0)
					{
				%>
						<%=amountIdUtensilAllocated.get(0) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="1">
				4
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>3)
					{
				%>
						<%=transactionIdCheckOut.get(3) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>3)
					{
				%>
						<%=amountCheckOut.get(3) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilAllocated.size()>1)
					{
				%>
						<%=paientIdUtensilAllocated.get(1) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilAllocated.size()>1)
					{
				%>
						<%=amountIdUtensilAllocated.get(1) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="1">
				5
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>4)
					{
				%>
						<%=transactionIdCheckOut.get(4) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>4)
					{
				%>
						<%=amountCheckOut.get(4) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilAllocated.size()>2)
					{
				%>
						<%=paientIdUtensilAllocated.get(2) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilAllocated.size()>2)
					{
				%>
						<%=amountIdUtensilAllocated.get(2) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="1">
				6
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>5)
					{
				%>
						<%=transactionIdCheckOut.get(5) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>5)
					{
				%>
						<%=amountCheckOut.get(5) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilAllocated.size()>3)
					{
				%>
						<%=paientIdUtensilAllocated.get(3) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilAllocated.size()>3)
					{
				%>
						<%=amountIdUtensilAllocated.get(3) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="1">
				7
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>6)
					{
				%>
						<%=transactionIdCheckOut.get(6) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>6)
					{
				%>
						<%=amountCheckOut.get(6) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilAllocated.size()>4)
					{
				%>
						<%=paientIdUtensilAllocated.get(4) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilAllocated.size()>4)
					{
				%>
						<%=amountIdUtensilAllocated.get(4) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="1">
				8
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>7)
					{
				%>
						<%=transactionIdCheckOut.get(7) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>7)
					{
				%>
						<%=amountCheckOut.get(7) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				TOTAL (UD)
			</td>
			<td align="center" colspan="2">
				<%=session.getAttribute("totalUtensilDeposit").toString()+"." %>
			</td>
			<td align="center" colspan="1">
				9
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>8)
					{
				%>
						<%=transactionIdCheckOut.get(8) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>8)
					{
				%>
						<%=amountCheckOut.get(8) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="4">
				REFUNDED DEPOSIT - UTENSIL
			</td>
			<td align="center" colspan="1">
				10
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>9)
					{
				%>
						<%=transactionIdCheckOut.get(9) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>9)
					{
				%>
						<%=amountCheckOut.get(9) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilDeAllocated.size()>0)
					{
				%>
						<%=paientIdUtensilDeAllocated.get(0) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilDeAllocated.size()>0)
					{
				%>
						<%=amountIdUtensilDeAllocated.get(0) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="1">
				11
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>10)
					{
				%>
						<%=transactionIdCheckOut.get(10) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>10)
					{
				%>
						<%=amountCheckOut.get(10) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilDeAllocated.size()>1)
					{
				%>
						<%=paientIdUtensilDeAllocated.get(1) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilDeAllocated.size()>1)
					{
				%>
						<%=amountIdUtensilDeAllocated.get(1) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="1">
				12
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>11)
					{
				%>
						<%=transactionIdCheckOut.get(11) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>11)
					{
				%>
						<%=amountCheckOut.get(11) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilDeAllocated.size()>2)
					{
				%>
						<%=paientIdUtensilDeAllocated.get(2) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilDeAllocated.size()>2)
					{
				%>
						<%=amountIdUtensilDeAllocated.get(2) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="1">
				13
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>12)
					{
				%>
						<%=transactionIdCheckOut.get(12) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>12)
					{
				%>
						<%=amountCheckOut.get(12) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilDeAllocated.size()>3)
					{
				%>
						<%=paientIdUtensilDeAllocated.get(3) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilDeAllocated.size()>3)
					{
				%>
						<%=amountIdUtensilDeAllocated.get(3) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="1">
				14
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>13)
					{
				%>
						<%=transactionIdCheckOut.get(13) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>13)
					{
				%>
						<%=amountCheckOut.get(13) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilDeAllocated.size()>4)
					{
				%>
						<%=paientIdUtensilDeAllocated.get(4) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilDeAllocated.size()>4)
					{
				%>
						<%=amountIdUtensilDeAllocated.get(4) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="1">
				15
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>14)
					{
				%>
						<%=transactionIdCheckOut.get(14) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>14)
					{
				%>
						<%=amountCheckOut.get(14) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				TOTAL (UR)
			</td>
			<td align="center" colspan="3">
				<%=session.getAttribute("totalUtensilDepositReturned").toString()+"." %>
			</td>
			
			<td align="center" colspan="2">
				TOTAL (Y)
			</td>
			<td align="center" colspan="2">
				<%=session.getAttribute("totalDepositReturned").toString()+"." %>
			</td>
		</tr>
		<tr>
			<td align="center" colspan="9">
				DEPOSIT LEDGER 
			</td>
		</tr>
		<tr>
			<td align="center" colspan="3">
				OPENING BAL.
			</td>
			<td align="center" colspan="2">
				Room D (X)
			</td>
			<td align="center" colspan="2">
				Room R (Y)
			</td>
			<td align="center" colspan="2">
				CLOSING BAL.
			</td>
		</tr>
		<tr>
			<td align="center" colspan="3">
				<%=session.getAttribute("openingBalanceRoom").toString()+"." %>
			</td>
			<td align="center" colspan="2">
				<%=session.getAttribute("totalDeposit").toString()+"." %>
			</td>
			<td align="center" colspan="2">
				<%=session.getAttribute("totalDepositReturned").toString()+"." %>
			</td>
			<td align="center" colspan="2">
				<%=session.getAttribute("closingBalanceRoom").toString()+"." %>
			</td>
		</tr>
		<tr>
			<td align="center" colspan="3">
				OPENING BAL.
			</td>
			<td align="center" colspan="2">
				Utensil D (UD)
			</td>
			<td align="center" colspan="2">
				Utensil R (UR)
			</td>
			<td align="center" colspan="2">
				x
			</td>
		</tr>
		<tr>
			<td align="center" colspan="3">
				<%=session.getAttribute("openingBalanceUtensil").toString()+"." %>
			</td>
			<td align="center" colspan="2">
				<%=session.getAttribute("totalUtensilDeposit").toString()+"." %>
			</td>
			<td align="center" colspan="2">
				<%=session.getAttribute("totalUtensilDepositReturned").toString()+"." %>
			</td>
			<td align="center" colspan="2">
				<%=session.getAttribute("closingBalanceUtensil").toString()+"." %>
			</td>
		</tr>
		<tr>
			<td align="center" colspan="9">
				CASH BALANCES
			</td>
		</tr>
		<tr>
			<td align="center" colspan="5">
				REVENUE
			</td>
			<td align="center" colspan="4">
				DEPOSIT
			</td>
		</tr>
		<tr>
			<td align="center" colspan="1">
				S.No.
			</td>
			<td align="center" colspan="3">
				Details
			</td>
			<td align="center" colspan="1">
				Amount Rs.
			</td>
			<td align="center" colspan="1">
				S.No.
			</td>
			<td align="center" colspan="2">
				Details
			</td>
			<td align="center" colspan="1">
				Amount Rs.
			</td>
		</tr>
		<tr>
			<td align="center" colspan="1">
				1
			</td>
			<td align="center" colspan="3">
				Collection Total (A)
			</td>
			<td align="center" colspan="1">
				<%=session.getAttribute("coltotal").toString()+"."%> 
			</td>
			<td align="center" colspan="1">
				1
			</td>
			<td align="center" colspan="2">
				Room D (X)
			</td>
			<td align="center" colspan="1">
				<%=session.getAttribute("totalDeposit").toString()+"."%> 
			</td>
		</tr>
		<tr>
			<td align="center" colspan="1">
				2
			</td>
			<td align="center" colspan="3">
				Expenses Total (B)
			</td>
			<td align="center" colspan="1">
				<%=session.getAttribute("exptotal").toString()+"."%> 
			</td>
			<td align="center" colspan="1">
				2
			</td>
			<td align="center" colspan="2">
				Room R (Y)
			</td>
			<td align="center" colspan="1">
				<%=session.getAttribute("totalDepositReturned").toString()+"."%> 
			</td>
		</tr>
		<tr>
			<td align="center" colspan="1">
				3
			</td>
			<td align="center" colspan="3">
				Balance (A-B)
			</td>
			<td align="center" colspan="1">
				<%=session.getAttribute("revenue3").toString()+"."%> 
			</td>
			<td align="center" colspan="1">
				3
			</td>
			<td align="center" colspan="2">
				(X-Y) (G)  
			</td>
			<td align="center" colspan="1">
				<%=session.getAttribute("deposit3").toString()+"."%> 
			</td>
		</tr>
		<tr>
			<td align="center" colspan="1">
				4
			</td>
			<td align="center" colspan="3">
				Red Receipt(<%=session.getAttribute("redreceiptno").toString()+"."%>)
			</td>
			<td align="center" colspan="1">
				<%=session.getAttribute("redreceipt").toString()+"."%> 
			</td>
			<td align="center" colspan="1">
				4
			</td>
			<td align="center" colspan="2">
				Utensil D (UD) 
			</td>
			<td align="center" colspan="1">
				<%=session.getAttribute("totalUtensilDeposit").toString()+"."%> 
			</td>
		</tr>
		<tr>
			<td align="center" colspan="1">
				5
			</td>
			<td align="center" colspan="3">
				Total (3+4) F
			</td>
			<td align="center" colspan="1">
				<%=session.getAttribute("revenue5").toString()+"."%> 
			</td>
			<td align="center" colspan="1">
				5
			</td>
			<td align="center" colspan="2">
				Utensil R (UR)
			</td>
			<td align="center" colspan="1">
				<%=session.getAttribute("totalUtensilDepositReturned").toString()+"."%> 
			</td>
		</tr>
		<tr>
			<td align="center" colspan="1">
				&nbsp;
			</td>
			<td align="center" colspan="3">
				&nbsp;
			</td>
			<td align="center" colspan="1">
				&nbsp;
			</td>
			<td align="center" colspan="1">
				6
			</td>
			<td align="center" colspan="2">
				(UD-UR) (H)
			</td>
			<td align="center" colspan="1">
				<%=session.getAttribute("deposit6").toString()+"."%> 
			</td>
		</tr>
		<tr>
			<td align="center" colspan="4">
				FINAL CASH BALANCE
			</td>
			<td align="center" colspan="1">
				(F+G+H)
			</td>
			<td align="center" colspan="4">
			<%=session.getAttribute("finalCashBalance").toString()+"."%> 
			</td>
		</tr>
	</table>
</body>
</html>